<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>pc端判断是否是电脑端</title>
</head>
<body>
	 <script type="text/javascript"> 
		//平台、设备和操作系统 
		var system ={ 
		win : false, 
		mac : false, 
		xll : false,
		ipad:false 
		}; 
		//检测平台 
		var p = navigator.platform; 
		system.win = p.indexOf("Win") == 0; 
		system.mac = p.indexOf("Mac") == 0;
		system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
		system.ipad = (navigator.userAgent.match(/iPad/i) != null)?true:false; 
		if(system.win||system.mac||system.xll||system.ipad){   
		}else{
		window.location.href="ph/index.html"; //输入要跳转的网址
		}
	</script>
</body>
</html>